﻿@{
    ViewBag.Title = "首页";
}
<div class="row">
    <div class="col-md-12" style="text-align:center;">
        @ViewBag.Content
    </div>
</div>
<div class="row">
    <div class="col-md-12">
        <button id="btnTest" class="btn btn-primary">Test</button>        
    </div>
</div>
    @*<div class="row">
            <div class="col-md-12">
                <div class="widget-box">
                    <div class="widget-title"><h5>@CSMSLang.Get("label_last_year_repair_statistics")</h5></div>
                    <div class="widget-content">
                        <div id="month_chart" style="height:200px; width:100%;"></div>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="widget-box">
                    <div class="widget-title"><h5>@CSMSLang.Get("label_not_complete_bill_statistics")</h5></div>
                    <div class="widget-content">
                        <div id="status_chart" style="height:200px; width:100%;"></div>
                    </div>
                </div>
            </div>
            <div class="col-md-6">
                <div class="widget-box">
                    <div class="widget-title"><h5>@CSMSLang.Get("label_service_type_statistics")</h5></div>
                    <div class="widget-content">
                        <div id="serviceitem_chart" style="height:200px; width:100%;"></div>
                    </div>
                </div>
            </div>
        </div>*@

    @section scripts{
        <script type="text/javascript">
            $(document).ready(function () {
                $("#btnTest").click(function (e) {
                    e.preventDefault();

                    $.ajax({
                        type: 'post',
                        url: baseurl + 'Home/CreateDetectionReport',
                        success: function (e) {
                            alert("success!");
                        }
                    });
                })
            });
        </script>
    }
